﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace _0712518_0712510_LTGame
{
    public abstract class MySprite
    {
        public MySprite(Texture2D[] _inputtextture2d, float _inputX, float _inputY)
        {
            Textture2d = _inputtextture2d;
            X = _inputX;
            Y = _inputY;
            Itextture2d = 0;
        }

        private Texture2D[] _textture2d;

        public Texture2D[] Textture2d
        {
            get { return _textture2d; }
            set 
            {
                _textture2d = value;
                _ntextture2d = _textture2d.Length;
            }
        }
        private int _ntextture2d;

        public int Ntextture2d
        {
            get { return _ntextture2d; }
            set { _ntextture2d = value; }
        }

        private float _x;//My Srite's cordinate X

        public float X
        {
            get { return _x; }
            set { _x = value; }
        }

        private float _y;//My Srite's cordinate Y

        public float Y
        {
            get { return _y; }
            set { _y = value; }
        }

        private int _itextture2d;

        protected int Itextture2d
        {
            get { return _itextture2d; }
            set { _itextture2d = value; }
        }

        //Draw method using draw my sprite
        public void Draw(GameTime gameTime, SpriteBatch _spritePatch)
        {
        }

        //Update the my sprite's drawing
        public void Update()
        {
        }
    }
}
